/*
 * @Author: huangyingli
 * @Date: 2023-02-08 09:38:02
 * @LastEditors: huangyingli
 * @LastEditTime: 2023-02-22 18:06:41
 * @Description:
 */
import axios from 'axios';
import statusInterceptor from '../middleware/statusInterceptor';

const axiosIns = axios.create({
  baseURL: '/api',
  timeout: 20000,
  headers: {
    'Content-Type': 'application/json'
  },
});

// 挂载控制请求状态的拦截器
statusInterceptor.install(axiosIns);

export default axiosIns;
